// JavaScript Document

//清除iCenter中的内容，移除右边浮动层
function cleariCenter(){
	$('#iCenter').html('');
	$('#div_float').remove();
}

//创建框架
function CreatFrame(page,querytab){
	cleariCenter();
	if(typeof querytab=="undefined")	querytab="";
	var src = page+'.php'+querytab;
	$('#iCenter').html('<iframe id="right_iframe" src="'+src+'" frameborder="0" style="text-align:center"></iframe>');
	autoFrame();//创建框架后调整框架的宽度高度
}

CreatFrame('manageFee','?querytab=0');
function FeeRecord(){

CreatFrame('manageFee','?querytab=0');

}
function Fuel(){


CreatFrame('manageFee','?querytab=1');

}
function Expense(){

CreatFrame('manageFee','?querytab=3');
}
function Maintenance(){

CreatFrame('manageFee','?querytab=4');
}
function Fix(){

CreatFrame('manageFee','?querytab=5');
}
function Safety(){

CreatFrame('manageFee','?querytab=6');
}
function Overhaul(){

CreatFrame('manageFee','?querytab=7');
}